


<!-- IF IN_FB_IFRAME -->
	<script type="text/javascript" src="../ofc/js/json/json2.js"></script>
	<script type="text/javascript" src="../ofc/js/swfobject.js"></script>
	<script type="text/javascript">
	swfobject.embedSWF("../ofc/open-flash-chart.swf", "holding_stock_chart", "400", "320", "9.0.0", "expressInstall.swf",  {"get-data":"get_data_holding_stock"} );
	</script>
<!-- ELSE -->		
	<script type="text/javascript" src="ofc/js/json/json2.js"></script>
	<script type="text/javascript" src="ofc/js/swfobject.js"></script>
	<script type="text/javascript">
	swfobject.embedSWF("ofc/open-flash-chart.swf", "holding_stock_chart", "500", "400", "9.0.0", "expressInstall.swf",  {"get-data":"get_data_holding_stock"} );
	</script>
<!-- ENDIF -->


<script type="text/javascript">
    
function get_data_holding_stock()
{
    //alert( 'reading data - holding stock' );
    return JSON.stringify(holding_stock_data);
}

var holding_stock_data = {HOLDING_STOCK_JASON_STRING};

</script>
<div class="panel" > 
	<div class="inner"><span class="corners-top"><span></span></span> 
	<h2><!-- IF S_SHOW_QUERY_USERNAME_IN_HOLDING_STOCK_LIST  -->{U_QUERY_USERNAME} -  <!-- ENDIF -->{L_SV_ASSEST_LIST}</h2> 
	
	</div>
	
	<table border="0" cellpadding="5" cellspacing="5">
		<tr>
			<td><p>				
				{L_SV_TOTAL_MARKET_VALUE}&nbsp; : &nbsp;
			</p></td>
			<td><p>	
				{TOTAL_VALUE_IN_HOLDING_STOCK_LIST} 
			</p></td>
		</tr>
		<tr>
			<td><p>				
				{L_SV_MONEY}&nbsp; : &nbsp;
			</p></td>
			<td><p>	
				{MONEY_IN_HOLDING_STOCK_LIST} ({MONEY_PERCENTAGE_IN_HOLDING_STOCK_LIST}%)
			</p></td>
		</tr>
		<tr>
			<td><p>				
				{L_SV_MARKET_VALUE_OF_HOLDING_STOCK}&nbsp; : &nbsp;
			</p></td>
			<td><p>	
				{VALUE_IN_HOLDING_STOCK_LIST} ({VALUE_PERCENTAGE_IN_HOLDING_STOCK_LIST}%)
			</p></td>
		</tr>
		
		<!-- IF S_HOLDING_STOCK_LIST  -->
	</table>
	<table border="0" cellpadding="5" cellspacing="5">
		<tr>
			<td><p>{L_SV_STOCK_ID}</p></td>
			<td><p>{L_SV_CORP_NAME}</p></td>
			<td align="center"><p>{L_SV_NUMBER}</p></td>			
			<td align="center"><p>{L_SV_COST}</p></td>			
			<td align="center"><p>{L_SV_REFERED_PRICE}</p></td>						
			<td align="center"><p>{L_SV_DIFFERENCE_PRICE}</p></td>	
			<td align="center"><p></p></td>	
			<td align="center"><p>{L_SV_MARKET_VALUE}</p></td>	
			<td align="center"><p></p></td>	
			<td align="center"><p>{L_SV_MORE_INFO}</p></td>	
		</tr>
		<!-- BEGIN holding_stock_list -->
		<tr>
			<td><p>{holding_stock_list.CORP_ID}</p></td>
			<td><p><a href=" http://mops.twse.com.tw/mops/web/t146sb03?step=1&firstin=1&off=1&keyword4=&code1=&TYPEK2=&checkbtn=&queryName=co_id&TYPEK=all&isnew=true&co_id={holding_stock_list.CORP_ID}" target=_blank>{holding_stock_list.CORP_NAME}</a></p></td>
			<td align="right"><p>{holding_stock_list.NUMBER}</p></td>			
			<td align="right"><p>{holding_stock_list.COST}</p></td>			
			<td align="right"><p><a href="http://mis.twse.com.tw/stock_best5.html?stockId={holding_stock_list.CORP_ID}" target=_blank>{holding_stock_list.REFERED_PRICE}</a></p></td>			
			<td align="right"><p>{holding_stock_list.DIFFERENCE_PRICE}</p></td>
			<td align="right"><p>{holding_stock_list.DIFFERENCE_PRICE_PERCENT}<!-- IF holding_stock_list.COST != 0 -->%<!-- ENDIF --></p></td>			
			<td align="right"><p>{holding_stock_list.MARKET_VALUE}</p></td>
			<td align="right"><p>{holding_stock_list.MARKET_VALUE_PERCENT}<!-- IF VALUE_IN_HOLDING_STOCK_LIST != 0 -->%<!-- ENDIF --></p></td>								
			<td>
				<p>
				<!-- IF IN_FB_IFRAME -->
				<a href="http://www.google.com.hk/finance?q=TPE:{holding_stock_list.CORP_ID}" target=_blank><img src="../images/G.png" width=24 height=24></a>
				<a href="http://tw.stock.yahoo.com/q/q?s={holding_stock_list.CORP_ID}" target=_blank><img src="../images/Y.png" width=24 height=24></a>
				<!-- ELSE -->
				<a href="http://www.google.com.hk/finance?q=TPE:{holding_stock_list.CORP_ID}" target=_blank><img src="images/G.png" width=24 height=24></a>
				<a href="http://tw.stock.yahoo.com/q/q?s={holding_stock_list.CORP_ID}" target=_blank><img src="images/Y.png" width=24 height=24></a>
				<!-- ENDIF -->
				</p>
			</td>	
		</tr>
		<!-- END holding_stock_list -->
		<!-- ENDIF -->
	</table>
	<!-- IF NOT_ALL_STOCK_SHOWED -->
	<p><a href="{HOLDING_STOCK_DETAIL_URL}" target=_blank>{L_SV_COMPLETED_INFO}</a>  </p>
	<!-- ENDIF -->
	<div id="holding_stock_chart"></div>
	
</div>
